/** @jsxRuntime automatic */
/** @jsxImportSource ../xml-runtime */

function Mono({ index }) {
  return (
    <>
      <link>
        <linkclipref>v-{index}</linkclipref>
        <mediatype>video</mediatype>
        <trackindex>1</trackindex>
        <clipindex>{index}</clipindex>
      </link>
      <link>
        <linkclipref>a-{index}</linkclipref>
        <mediatype>audio</mediatype>
        <trackindex>1</trackindex>
        <clipindex>{index}</clipindex>
      </link>
    </>
  )
}

function Stereo({ index }) {
  return (
    <>
      <link>
        <linkclipref>v-{index}</linkclipref>
        <mediatype>video</mediatype>
        <trackindex>1</trackindex>
        <clipindex>{index}</clipindex>
      </link>
      <link>
        <linkclipref>al-{index}</linkclipref>
        <mediatype>audio</mediatype>
        <trackindex>1</trackindex>
        <clipindex>{index}</clipindex>
        <groupindex>1</groupindex>
      </link>
      <link>
        <linkclipref>ar-{index}</linkclipref>
        <mediatype>audio</mediatype>
        <trackindex>2</trackindex>
        <clipindex>{index}</clipindex>
        <groupindex>1</groupindex>
      </link>
    </>
  )
}

export const Links = { Mono, Stereo }
